import request from '@/utils/request'

// 查询老年人能力评估列表
export function listAbilityAssessment(query) {
  return request({
    url: '/nursing/abilityAssessment/list',
    method: 'get',
    params: query
  })
}

// 查询老年人能力评估详细
export function getAbilityAssessment(id) {
  return request({
    url: '/nursing/abilityAssessment/' + id,
    method: 'get'
  })
}

// 新增老年人能力评估
export function addAbilityAssessment(data) {
  return request({
    url: '/nursing/abilityAssessment',
    method: 'post',
    data: data
  })
}

// 修改老年人能力评估
export function updateAbilityAssessment(data) {
  return request({
    url: '/nursing/abilityAssessment',
    method: 'put',
    data: data
  })
}

// 删除老年人能力评估
export function delAbilityAssessment(id) {
  return request({
    url: '/nursing/abilityAssessment/' + id,
    method: 'delete'
  })
}

// 导出老年人能力评估
export function exportAbilityAssessment(query) {
  return request({
    url: '/nursing/abilityAssessment/export',
    method: 'get',
    params: query
  })
} 